/**
 * Copyright (c) 2010-2020 by skzr.org
 * All rights reserved.
 * @Author skzr.org(E-mail:skzr.org@gmail.com)
 * @date 2010-11-1 下午01:00:33
 */
package org.skzr.chart4me.demo.applet;


import javax.swing.JApplet;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @jdk 1.6
 * @author skzr.org(E-mail:skzr.org@gmail.com)
 * @version 1.0.0
 */
public class HelloWorld extends JApplet {
	private static final long serialVersionUID = 1L;
	protected final transient Logger logger = LoggerFactory.getLogger(getClass());
	
	@Override
	public void init() {
		logger.trace("开始执行init()");
		try {
			SwingUtilities.invokeAndWait(new Runnable() {
				public void run() {
					logger.trace("添加信息Label");
					JLabel lblInfo = new JLabel("大家好，看到我了吗？");
					add(lblInfo);
				}
			});
		} catch (Exception e) {
			logger.warn("[忽略]", e);
		}
	}
}
